home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / gcc / ixemlsrc.lha / ixemul / utils / Makefile.in < prev    next >
Makefile  |  1996-03-28  |  4KB  |  125 lines

  1. srcdir =    @srcdir@
  2. VPATH =        @srcdir@
  3.  
  4. prefix =    @prefix@
  5. exec_prefix =    @exec_prefix@
  6.  
  7. bindir =    $(exec_prefix)/bin
  8.  
  9. INSTALL =    @INSTALL@
  10. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  11. INSTALL_DATA =    @INSTALL_DATA@
  12.  
  13. SHELL =        /bin/sh
  14. CC =        @CC@
  15. RM =        rm
  16. DEFS =        @DEFS@
  17. LIBS =        @LIBS@
  18. CFLAGS =    @CFLAGS@
  19. LDFLAGS =    @LDFLAGS@
  20.  
  21. INCLUDES =    -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../library -I$(srcdir)/../static
  22. OUR_CFLAGS =    $(DEFS) $(INCLUDES) $(CFLAGS)
  23. OUR_LDFLAGS =    $(LDFLAGS) -B../libsrc/ -L../libsrc
  24.  
  25. DATABASES =    africa antarctica asia australasia europe northamerica southamerica \
  26.         pacificnew etcetera backward systemv solar87 solar88 solar89
  27.  
  28. IXPREFS_OBJ =    ixprefs.o main.o cli.o functions.o
  29.  
  30. # Taken from the tzcode95g.tar.gz Makefile:
  31. #
  32. # If you want something other than Eastern United States time as a template
  33. # for handling POSIX-style time zone environment variables,
  34. # change the line below (after finding the zone you want in the
  35. # time zone files, or adding it to a time zone file).
  36. # (When a POSIX-style environment variable is handled, the rules in the template
  37. # file are used to determine "spring forward" and "fall back" days and
  38. # times; the environment variable itself specifies GMT offsets of standard and
  39. # summer time.)
  40. # Alternately, if you discover you've got the wrong time zone, you can just
  41. #    zic -p rightzone
  42. # to correct things.
  43. # If you want POSIX compatibility, use "America/New_York".
  44.  
  45. POSIXRULES =    America/New_York
  46.  
  47. .c.o:
  48.         $(CC) -c $(OUR_CFLAGS) $<
  49.  
  50. all :        ixprefs ixtrace ixrun ixtimezone ixpipe-handler zoneinfo/GMT \
  51.         ixrun.doc ixtimezone.doc zic.doc ixtrace.doc
  52.  
  53. ixprefs :    $(IXPREFS_OBJ) getopt.o getopt1.o
  54.         $(CC) $(OUR_LDFLAGS) -o $@ $^ -lauto
  55.  
  56. ixprefs.o:    ixprefs.c
  57.         sed -e '/clib/d' \
  58.             -e 's/pragmas/proto/' \
  59.             -e 's/_pragmas//' \
  60.             -e 's/    (TAG_DONE)/    (GTCB_Scaled), TRUE, (TAG_DONE)/' \
  61.             -e 's/OpenDiskFont/OpenFont/' \
  62.             -e 's/CreateMenus( ixprefsNewMenu, GTMN_FrontPen, 0L, TAG_DONE )/CreateMenusA( ixprefsNewMenu, NULL )/' \
  63.             -e 's/LayoutMenus( ixprefsMenus, VisualInfo, TAG_DONE )/LayoutMenus( ixprefsMenus, VisualInfo, GTMN_NewLookMenus, TRUE, TAG_DONE )/' \
  64.             -e 's/WA_PubScreenFallBack,    TRUE/WA_PubScreenFallBack,    TRUE, WA_NewLookMenus,    TRUE/' \
  65.             <$^ >tmp_ixprefs.c
  66.         $(CC) -c $(OUR_CFLAGS) -o $@ tmp_ixprefs.c
  67.         rm -f tmp_ixprefs.c
  68.  
  69. functions.o:    ../library/version.h ../library/ixemul.h
  70.  
  71. ixtrace :    ixtrace.o getopt.o
  72.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  73.  
  74. ixrun:        ixrun.o
  75.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  76.  
  77. ixtimezone:    ixtimezone.o
  78.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  79.  
  80. ixpipe-handler:    ixpipe-handler.o
  81.         $(CC) -nostdlib -o $@ $? -lc
  82.  
  83. zic:        zic.o ialloc.o scheck.o getopt.o
  84.         $(CC) $(OUR_LDFLAGS) -o $@ $^ $(LIBS)
  85.  
  86. yearistype:    yearistype.sh
  87.         rm -f $@
  88.         cp $^ $@
  89.         chmod +x $@
  90.  
  91. zoneinfo/GMT:    zic yearistype
  92.         rm -rf zoneinfo
  93.         mkdir zoneinfo
  94.         rootme=`pwd` ; cd $(srcdir)/databases ; \
  95.         $$rootme/zic -d $$rootme/zoneinfo -y "sh $$rootme/yearistype" -p $(POSIXRULES) $(DATABASES)
  96.  
  97. ../library/version.h:    ../library/parse_version.c ../version.in
  98.         gcc -o parse_version $<
  99.         parse_version ../library
  100.         rm -f parse_version
  101.  
  102. ixrun.doc:    ixrun.1
  103.         groff -Tascii -man $^ >$@
  104.  
  105. ixtrace.doc:    ixtrace.1
  106.         groff -Tascii -man $^ >$@
  107.  
  108. ixtimezone.doc:    ixtimezone.8
  109.         groff -Tascii -man $^ >$@
  110.  
  111. zic.doc:    zic.8
  112.         groff -Tascii -man $^ >$@
  113.  
  114. #
  115. #    Clean up the local directory.
  116. #
  117.  
  118. clean :
  119.         rm -f *.o ixtrace ixprefs ixrun ixtimezone *.doc
  120.         rm -f zic yearistype ixpipe-handler tmp_ixprefs.c
  121.         rm -rf zoneinfo
  122.  
  123. clobber :    clean
  124.         $(RM) -f Makefile
  125.